<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>login</title>
    <link rel="stylesheet" type="text/css" href="assets/css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="assets/css/demo.css" />
    <!--必要样式-->
    <link rel="stylesheet" type="text/css" href="assets/css/component.css" />
    <!--[if IE]>
    <script src="assets/js/html5.js"></script>
    <![endif]-->
</head>
<body>
<div class="container demo-1">
    <div class="content">
        <div id="large-header" class="large-header">
            <canvas id="demo-canvas"></canvas>
            <div class="logo_box">
                <h3>欢迎您</h3>
                <form action="javascript:void(0);" name="f" id="punishformID" method="post">
                    <!--<input name="grant_type" value="password" hidden="hidden"/>
                    <input name="client_id" value="client" hidden="hidden"/>
                    <input name="client_secret" value="client-secret" hidden="hidden"/>
                    <input name="scope" value="server" hidden="hidden"/>-->
                    <div class="input_outer">
                        <span class="u_user"></span>
                        <input name="userName" value="admin" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
                    </div>
                    <div class="input_outer">
                        <span class="us_uer"></span>
                        <input name="passWord" value="123456" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
                    </div>
                    <div class="mb2">
                        <a href="javascript:void(0);" class="act-but submit" onclick="logins();"  style="color: #FFFFFF">登录</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div><!-- /container -->
<script type="text/javascript" src="assets/js/TweenLite.min.js"></script>
<script type="text/javascript" src="assets/js/EasePack.min.js"></script>
<script type="text/javascript" src="assets/js/rAF.js"></script>
<script type="text/javascript" src="assets/js/demo-1.js"></script>
<script type="text/javascript" src="assets/js/jquery-2.0.3.min.js" ></script>
<script type="text/javascript" src="assets/js/jquery.cookie.js" ></script>
<script src="layer/layer.js"></script>
<script type="text/javascript" src="assets/js/common.js"></script>
<script type="text/javascript">
    var logins = function () {
        var loginValue = $("#punishformID").serializeArray();

        loginAjax(loginValue,"/auth/login","GET");
        // $.ajax({
        //     type: "POST",
        //     url: "/auth/oauth/token",
        //     beforeSend: function(xhr) {
        //         xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        //     },
        //     data: loginValue,// 要提交的表单
        //     success: function (msg) {
        //         //console.info(msg)
        //         $.cookie('myToken', msg.access_token, { expires: 1 });
        //         window.location.href="/main.html";
        //     },
        //     error: function (error) {
        //         layer.alert('用户名或密码错误', {
        //             icon: 2,
        //             title: "登陆提示"
        //         })
        //     }
        // })
    }
</script>
</body>
</html>